﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="true" CodeFile="RetrievePassword.aspx.cs" Inherits="Members_RetrievePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="CPMainContent">
  <div class="post">
    <h2 class="title">
      Password Recovery</h2>
    <div class="entry">
      <p>
        <asp:PasswordRecovery ID="PasswordRecovery1" runat="server" 
          UserNameInstructionText="Enter your email address to receive your password." 
          UserNameLabelText="Email address:" 
          UserNameRequiredErrorMessage="Email address is required.">
          <QuestionTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
              <tr>
                <td>
                  <table cellpadding="0">
                    <tr>
                      <td align="center" colspan="2">
                        <strong>Step 2: Identity confirmation</strong></td>
                    </tr>
                    <tr>
                      <td align="center" colspan="2">
                        Answer the following question to receive your password.</td>
                    </tr>
                    <tr>
                      <td align="right">
                        Email address:</td>
                      <td>
                        <asp:Literal ID="UserName" runat="server"></asp:Literal>
                      </td>
                    </tr>
                    <tr>
                      <td align="right">
                        Question:</td>
                      <td>
                        <asp:Literal ID="Question" runat="server"></asp:Literal>
                      </td>
                    </tr>
                    <tr>
                      <td align="right">
                        <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Answer:</asp:Label>
                      </td>
                      <td>
                        <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                          ControlToValidate="Answer" 
                          ErrorMessage="Answer is required." 
                          ToolTip="Answer is required." ValidationGroup="PasswordRecovery1" 
                          CssClass="ErrorMessage">*</asp:RequiredFieldValidator>
                      </td>
                    </tr>
                    <tr>
                      <td align="center" colspan="2" style="color:Red;">
                        <asp:Label ID="FailureText" runat="server" CssClass="ErrorMessage"></asp:Label>
                      </td>
                    </tr>
                    <tr>
                      <td align="right" colspan="2">
                        <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" 
                          ValidationGroup="PasswordRecovery1" />
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </QuestionTemplate>
          <SuccessTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
              <tr>
                <td>
                  <table cellpadding="0">
                    <tr>
                      <td>
                        <strong>Your password has been sent to you.</strong></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </SuccessTemplate>
          <UserNameTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
              <tr>
                <td>
                  <table cellpadding="0">
                    <tr>
                      <td align="center" colspan="2">
                        Forgot Your Password?</td>
                    </tr>
                    <tr>
                      <td align="center" colspan="2">
                        <strong>Step 1: Enter your email address.</strong></td>
                    </tr>
                    <tr>
                      <td align="right">
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Email Address:</asp:Label>
                      </td>
                      <td>
                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                          ControlToValidate="UserName" ErrorMessage="Email address is required." 
                          ToolTip="User Name is required." ValidationGroup="PasswordRecovery1" 
                          CssClass="ErrorMessage">*</asp:RequiredFieldValidator>
                      </td>
                    </tr>
                    <tr>
                      <td align="center" colspan="2" style="color:Red;">
                        <asp:Label ID="FailureText" runat="server" CssClass="ErrorMessage"></asp:Label>
                      </td>
                    </tr>
                    <tr>
                      <td align="right" colspan="2">
                        <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" 
                          ValidationGroup="PasswordRecovery1" />
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </UserNameTemplate>
          <ValidatorTextStyle CssClass="ErrorMessage" />
        </asp:PasswordRecovery>
      </p>
    </div>
    
  </div>

    &nbsp;</div>
</asp:Content>


